package org.csu.molediary.api.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

@Data
@TableName("diary")
public class Diary {

    private int contentid;
    private String content;
    private String accountid;
    private int tagid;
    private String province;
    private String distinct1;
    private String city;
    private String photo1;
    private String photo2;
    private String photo3;
    private int goodnum;
    private String title;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private String diarydate;
}
